package com.phonegap.gwt.camera.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.phonegap.gwt.camera.client.impl.CameraImpl;
public class Camera extends JavaScriptObject {
	  public static boolean isSupported() {
		    return impl.isSupported();
		  }
	  
	  
	  protected Camera() {
	  }
	  
	  
	  public final  void getPictureFromCamera(CameraCallback callback) {
		    impl.getPictureFromCamera(this, callback);
		  }
	  public final void getPictureFromLibrary(CameraCallback callback) {
		    impl.getPictureFromLibrary(this, callback);
		  }
	
	  private static final CameraImpl impl = GWT.create(CameraImpl.class);

	  public static Camera getCamera() {
	    return impl.getCamera();
	  }
	
}
